package com.net.xpay.common.dao;

import com.net.xpay.common.domain.CheckCode;
import com.net.common.annotation.DataCommon;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.xpay.core.model.CheckCodeSearchModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface CheckCodeMapper extends PagedMapper<Long, CheckCode> {
    CheckCode findLastByCondition(@Param("condition") CheckCode condition);

    List<CheckCode> search(@Param("searchModel") CheckCodeSearchModel searchModel,@Param("page") Page page);

    long searchCount(@Param("searchModel")CheckCodeSearchModel searchModel);
}
